package com.manong.bookstore.payment.feign;

import com.manong.common.utils.R;
import com.manong.bookstore.payment.entity.ProduceEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("bookstore-produce")
public interface ProduceFeignService {
    @RequestMapping("/produce/produce/info/{produceId}")
    public R info(@PathVariable("produceId") Integer produceId);
    @RequestMapping("/produce/produce/update")
    public R update(@RequestBody ProduceEntity produce);
}
